<?php
/**
 * Created by PhpStorm.
 * User: yangjiaming
 * Date: 2018/2/5
 * Time: 15:29
 */

namespace Eagle\Adapter\Front;


use Eagle\Adapter\EagleBaseAdapter;

class UserAdapter extends EagleBaseAdapter
{
    //返回表名
    public function table()
    {
        return 'user';
    }
    //返回库名
    public function database()
    {
        return 'shop';
    }
    //redis相关 暂未启用
    public function redis()
    {
        return null;
    }
    //返回PDO配置，适用于不同数据的配置，返回null即使用默认数据库
    public function dbConfig()
    {

    }
    //软删除字段
    public function softDeleted()
    {
        return 'if_deleted';
    }
    //返回主键id
    public function primaryIdParamName()
    {
        return 'id';
    }
}